package com.bookmarket.service.impl;

import com.bookmarket.dao.LLAddressMapper;
import com.bookmarket.entity.Address;
import com.bookmarket.service.LLAddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * LLAddressServiceImpl
 *
 * @author 李亮
 * @date 2018/1/2
 */
@Service("/adderssService")
public class LLAddressServiceImpl implements LLAddressService {
    @Resource
  private LLAddressMapper addressMapper;

     public List<Address> getAllList(int id){
    return  addressMapper.getall(id);
}

   public void updatepass(String pass,int id){
         addressMapper.updatepass(pass,id);
    }

    public void dell(int id){
     addressMapper.dell(id);
}
    public void add(Address address){
    addressMapper.add(address);
    }
    public void update(Address address){
        addressMapper.update(address);
    }


    public LLAddressMapper getAddressMapper() {
        return addressMapper;
    }

    public void setAddressMapper(LLAddressMapper addressMapper) {
        this.addressMapper = addressMapper;
    }
}